package com.guzhi;

//定义comparable getmax（comparable c1，comparable c2）方法

public class Method {
    public static Comparable getmax(Comparable c1,Comparable c2){
        int result = c1.compareTo(c2);
        if(result >= 0){
            return c1;
        }else{
            return c2;
        }
    }
}

